<?php
use kartik\detail\DetailView;
use yii\helpers\Url;
use common\libs\Constants;
use backend\models\activeRecords\StatisticsDay;

/* @var $this View */
/* @var $model StatisticsDay */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Statistics Days'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;

$attributes = [
        [
            'group' => true,
            'label' => '基础信息',
            'rowOptions' => ['class' => 'info']
        ],
                [
            'columns' => [

                                        ['attribute' => 'id'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'reg_num'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'pay_sum'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'pay_num'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'pay_rate'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'arppu'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'next_remains'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'third_remains'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'seven_remains'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'thirty_remains'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'game_name'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'server_name'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'guild_sign'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'spread_key_2'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'record_time'],

            ]
        ],
                [
            'columns' => [

                                        ['attribute' => 'date'],

            ]
        ],
        ];


echo DetailView::widget([
    'model' => $model,
    'panel' => [
        'heading' => 'statistics-day # ' . $model->id,
        'type' => DetailView::TYPE_PRIMARY,
    ],
    'attributes' => $attributes,
    'labelColOptions' => ['class' => 'col-sm-2'],
    'valueColOptions' => ['class' => 'col-sm-6'],
    'deleteOptions' => [
        'url' => Url::to(['delete', 'id' => $model->id])
    ],
    'formOptions' => [
        'id' => 'view-form',
        'options' => [
            'enctype' => 'multipart/form-data'
        ],
        'enableAjaxValidation' => true,
        'validationUrl' => Url::toRoute(['validate-form'])
    ]
]);